Fix stop

Fixed issue when trying containers "syntax error near unexpected token `else'"