Small refactoring of disconnect_workspace_signals

Added a debug line to enhance debug messages.