Riviera Beach almost hires city manager in heated meeting