Interface Bug Fixes

Fixed a bug with scan by ip if cancelled would leave the button
disabled.
Fixed the code on closing the form when a script is running.