Finish status bar and pause function