Cleaning up application