Fixed bug #504 - added stop command

Fixed bug #504: https://bugs.tddium.com/bugzilla/show_bug.cgi?id=504
Added stop command.