Game crashes upon exit when using a VisibilityNotifier2D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kwantuM

I’m just starting to learn Godot and I wanted to reset the scene when my player exits the screen. Therefore I used a visibility notifier with screen_exited bound to a local callback function that calls get_tree().reload_current_scene(). This works fine, but when I exit the game, “Godot Engine has stopped working”. Am I doing something wrong (do I need to remove the binding before closing?) or is this a bug?