Closed #23. Pause when showing settings dialogue not to crash.