Kills server before deleting

Replaces old kill function with better one.
Kills a server before deletion
Removed useless variable