fix bug: raises error with new connection profile if no connection
may fix bug: if connection closed some button, window and menu live