Can you resign with immediate effect to avoid disciplinary action?