catching exception if repl port is already in use