Put clean up commands in a separate script
Remove profiler module

Profiler is not particulary neat feature. Currently it drags
code which is hard to refactor without it. It can be re-introduced
later nicely if needed.